import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'

// 全局 插件形式
import { postRequest } from '@/util/api'
import { getRequest } from '@/util/api'
import { putRequest } from '@/util/api'
import { deleteRequest } from '@/util/api'

Vue.config.productionTip = false
Vue.use(ElementUI)

// 应用 请求
Vue.prototype.postRequest = postRequest
Vue.prototype.getRequest = getRequest
Vue.prototype.putRequest = putRequest
Vue.prototype.deleteRequest = deleteRequest

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
